home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.006 / xemacs-1 / lib / xemacs-19.13 / lisp / ilisp / ilisp-ind.el < prev    next >
Encoding:
Text File  |  1995-01-26  |  1.3 KB  |  48 lines

  1. ;;; -*- Mode: Emacs-Lisp -*-
  2.  
  3. ;;; ilisp-ind.el --
  4.  
  5. ;;; This file is part of ILISP.
  6. ;;; Version: 5.7
  7. ;;;
  8. ;;; Copyright (C) 1990, 1991, 1992, 1993 Chris McConnell
  9. ;;;               1993, 1994 Ivan Vasquez
  10. ;;;               1994, 1995 Marco Antoniotti and Rick Busdiecker
  11. ;;;
  12. ;;; Other authors' names for which this Copyright notice also holds
  13. ;;; may appear later in this file.
  14. ;;;
  15. ;;; Send mail to 'ilisp-request@lehman.com' to be included in the
  16. ;;; ILISP mailing list. 'ilisp@lehman.com' is the general ILISP
  17. ;;; mailing list were bugs and improvements are discussed.
  18. ;;;
  19. ;;; ILISP is freely redistributable under the terms found in the file
  20. ;;; COPYING.
  21.  
  22.  
  23.  
  24. ;;;
  25. ;;; ILISP indentation
  26. ;;;
  27.  
  28.  
  29. ;;;%Indentation
  30. (defun indent-line-ilisp (&optional whole-exp)
  31.   "Indent current line as Lisp code.
  32. With argument, indent any additional lines of the same expression
  33. rigidly along with this one.  This is restricted to the current buffer input."
  34.   (interactive "P")
  35.   (save-restriction
  36.     (if (memq major-mode ilisp-modes)
  37.     (narrow-to-region (save-excursion (lisp-input-start)) (point-max)))
  38.     (lisp-indent-line whole-exp)))
  39.  
  40. ;;;
  41. (defun indent-sexp-ilisp ()
  42.   "Indent each line of the list starting just after point."
  43.   (interactive)
  44.   (save-restriction
  45.     (if (memq major-mode ilisp-modes)
  46.     (narrow-to-region (save-excursion (lisp-input-start)) (point-max)))
  47.     (indent-sexp)))
  48.